<template>
  <div>
    <img src="./assets/微信图片_20221120164449.jpg" alt="" v-show="flag" />
    <button @click="isShow">点击以后显示和隐藏</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true
    }
  },
  methods: {
    isShow() {
      this.flag = !this.flag
    }
  }
}
</script>

<style></style>
